﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Signup.aspx.cs" Inherits="Nivdal.Sponsors.Signup" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link type="text/css" rel="stylesheet" href="Sponsors.css" />
    <script src="Sponsors.js" type="text/javascript"></script>
    <title></title>
</head>
<body>
<table style="margin: 0 auto; width: 1024px;">
        <tr>
            <td align="left">
                <img src="../Images/logo.png" alt="NivdalLogo" />
            </td>
        </tr>
    </table>
    <form id="form1" runat="server">
    <cc1:ToolkitScriptManager ID="ToolkitScriptManager2" runat="server" EnablePageMethods="true">
    </cc1:ToolkitScriptManager>
    <asp:HiddenField ID="IsImageChecked" runat="server" />
    <asp:HiddenField ID="IsBannerExist" runat="server" />
     <div style="margin:0 auto; padding: 2px; width: 700px">
      <asp:Label ID="SignupTitleLabel" runat="server" CssClass="PageNameContentStyle" Text="<%$ Resources:SponsorsResource, NewSponsor_Signup %>"></asp:Label>
      <br />
      <br />
        <asp:Label ID="MessageLabel" runat="server" Text=""></asp:Label>
        <table style="width: 700px;">
            <tr>
                <td>
                    <asp:Label ID="NameTitleLabel" runat="server" AssociatedControlID="NameTextBox" Text="<%$ Resources:SponsorsResource, NewSponsor_Name %>"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="NameTextBox" runat="server" Width="200px" MaxLength="500"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="NameTextBox"
                        ErrorMessage="<%$ Resources:SponsorsResource, NewSponsor_NameIsRequire %>" Display="Dynamic"
                        ValidationGroup="CreateUserWizard"></asp:RequiredFieldValidator>
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="EmailTitleLabel" runat="server" AssociatedControlID="EmailTextBox"
                        Text="<%$ Resources:SponsorsResource, NewSponsor_Email %>"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="EmailTextBox" runat="server" Width="200px" MaxLength="100"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="EmailTextBox"
                        Display="Dynamic" ErrorMessage="<%$ Resources:SponsorsResource, NewSponsor_EmailIsRequire %>"
                        ValidationGroup="CreateUserWizard"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="EmailValidationExpressionValidator" runat="server"
                        ControlToValidate="EmailTextBox" Display="Dynamic" ErrorMessage="<%$ Resources:SponsorsResource, NewSponsor_NotLegalEmail %>"
                        ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ValidationGroup="CreateUserWizard">
                    </asp:RegularExpressionValidator>
                </td>
                <td>
                    <div id="EmaildivStatus" runat="server">
                    </div>
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="PasswordTitleLabel" AssociatedControlID="PasswordTextBox" runat="server"
                        Text="<%$ Resources:SponsorsResource, NewSponsor_Password %>"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="PasswordTextBox" runat="server" Width="200px" MaxLength="100" TextMode="Password"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="PasswordTextBox"
                        Display="Dynamic" ErrorMessage="<%$ Resources:SponsorsResource, NewSponsor_PasswordIsRequire %>"
                        ValidationGroup="CreateUserWizard"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="valPassword" runat="server" ControlToValidate="PasswordTextBox"
                        ErrorMessage="<%$ Resources:SponsorsResource, NewSponsor_MinPassLength %>" ValidationExpression=".{5}.*"
                        ValidationGroup="CreateUserWizard" />
                </td>
                <td>
                    <cc1:PasswordStrength ID="Passwordstrength1" runat="server" PrefixText="<%$ Resources:SponsorsResource, NewSponsor_Register_Strength %>"
                        TextStrengthDescriptionStyles="VeryPoor; Weak; Average; Strong; Excellent" DisplayPosition="RightSide"
                        MinimumNumericCharacters="1" MinimumSymbolCharacters="1" PreferredPasswordLength="8"
                        TextStrengthDescriptions="<%$ Resources:SponsorsResource, NewSponsor_Register_PasswordStrength %>"
                        TargetControlID="PasswordTextBox">
                    </cc1:PasswordStrength>
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="ConfirmPasswordTitleLabel" runat="server" AssociatedControlID="ConfirmPasswordTextBox"
                        Text="<%$ Resources:SponsorsResource, NewSponsor_ConfirmPassword %>"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="ConfirmPasswordTextBox" runat="server" Width="200px" MaxLength="100"
                        TextMode="Password"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" ControlToValidate="ConfirmPasswordTextBox"
                        Display="Dynamic" ErrorMessage="<%$ Resources:SponsorsResource, NewSponsor_ConfirmPasswordIsRequired %>"
                        ValidationGroup="CreateUserWizard"></asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="PasswordCompare" runat="server" ControlToCompare="PasswordTextBox"
                        ControlToValidate="ConfirmPasswordTextBox" Display="Dynamic" ErrorMessage="<%$ Resources:SponsorsResource, NewSponsor_PasswordCompareErrorMessage %>"
                        ValidationGroup="CreateUserWizard"></asp:CompareValidator>
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="SecurityQuestionTitleLabel" runat="server" AssociatedControlID="SecurityQuestionTextBox"
                        Text="<%$ Resources:SponsorsResource, NewSponsor_SecurityQuestion %>"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="SecurityQuestionTextBox" runat="server" Width="200px" MaxLength="100"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="SecurityQuestionFieldValidator" runat="server" ControlToValidate="SecurityQuestionTextBox"
                        Display="Dynamic" ErrorMessage="<%$ Resources:SponsorsResource, NewSponsor_SecurityQuestionRequired %>"
                        ValidationGroup="CreateUserWizard"></asp:RequiredFieldValidator>
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="SecurityAnswerTitleLabel" runat="server" AssociatedControlID="SecurityAnswerTextBox"
                        Text="<%$ Resources:SponsorsResource, NewSponsor_SecurityAnswer %>"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="SecurityAnswerTextBox" runat="server" Width="200px" MaxLength="100"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="SecurityAnswerRequiredFieldValidator" runat="server"
                        ControlToValidate="SecurityAnswerTextBox" Display="Dynamic" ErrorMessage="<%$ Resources:SponsorsResource, NewSponsor_SecurityAnswerRequiredField %>"
                        ValidationGroup="CreateUserWizard"></asp:RequiredFieldValidator>
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="BannerTitleLabel" runat="server" AssociatedControlID="BannerFileUpload"
                        Text="<%$ Resources:SponsorsResource, NewSponsor_Banner %>"></asp:Label>
                </td>
                <td>
                    <asp:FileUpload ID="BannerFileUpload" runat="server" />
                    <br />
                    <asp:Label ID="BannerTipLabel" runat="server" Text="<%$ Resources:SponsorsResource, NewSponsor_BannerSizeTip %>"></asp:Label>
                </td>
                <td>
                    <div id="NoBannerDivAlert" runat="server">
                    </div>
                    <%--<asp:RequiredFieldValidator ID="BannerRequiredFieldValidator" runat="server" ControlToValidate="BannerFileUpload"
                        Display="Dynamic" ErrorMessage="<%$ Resources:SponsorsResource, NewSponsor_BannerFileRequire %>" 
                        SetFocusOnError="true" ValidationGroup="CreateUserWizard"> 
                    </asp:RequiredFieldValidator>--%>
                </td>
                <td>
                    <br />
                    <asp:Button ID="UploadBannerButton" runat="server" Text="<%$ Resources:SponsorsResource, NewSponsor_ShowBanner %>"
                        OnClick="Upload_Click" />
                </td>
                <td>
                    <asp:Image Width="100px" runat="server" ID="NormalImage" Visible="false" />
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="LinkTitleLabel" AssociatedControlID="LinkTextBox" runat="server" Text="<%$ Resources:SponsorsResource, NewSponsor_Link %>"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="LinkTextBox" runat="server" Width="200px" MaxLength="100"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="LinkRequiredFieldValidator" runat="server" ControlToValidate="LinkTextBox"
                        Display="Dynamic" ErrorMessage="<%$ Resources:SponsorsResource, NewSponsor_LinkRequired %>"
                        ValidationGroup="CreateUserWizard"></asp:RequiredFieldValidator>
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Button ID="SubmitButton" runat="server" ValidationGroup="CreateUserWizard" Text="<%$ Resources:SponsorsResource, NewSponsor_Submit %>"
                        OnClick="SubmitButton_Click" />
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
